
//======================================================================
//
//        Copyright : Zhengzhou Strawberry Computer Technology Co.,LTD.
//        All rights reserved
//        
//        Application:NFinal MVC framework
//        Filename :CookieManager.cs
//        Description :Cookie管理类
//
//        created by Lucas at  2015-6-30`
//     
//        WebSite:http://www.nfinal.com
//
//======================================================================
using System;
using System.Collections.Generic;
using System.Web;

namespace WebApplication1.DDD.Code.Data
{
    public class CookieManager:NFinal.Cookie
    {
		private CookieInfo _cookieInfo = new CookieInfo();
        public CookieManager()
        {
        }
        public CookieManager(NFinal.IAction action):base(action)
        {
            
        }
        public CookieManager(IDictionary<string, string> cookies):base(cookies)
        {

        }
        public string cart
        {
            get
            {
					_cookieInfo.cart = this["cart"];
				return _cookieInfo.cart;
            }
            set
            {
                _cookieInfo.cart = value;
					this["DDD_cart"]= value;
            }
        }
        public string vcheck
        {
            get
            {
					_cookieInfo.vcheck = this["vcheck"];
				return _cookieInfo.vcheck;
            }
            set
            {
                _cookieInfo.vcheck = value;
					this["DDD_vcheck"]= value;
            }
        }
        public string check
        {
            get
            {
					_cookieInfo.check = this["check"];
				return _cookieInfo.check;
            }
            set
            {
                _cookieInfo.check = value;
					this["DDD_check"]= value;
            }
        }
        public string openid
        {
            get
            {
					_cookieInfo.openid = this["openid"];
				return _cookieInfo.openid;
            }
            set
            {
                _cookieInfo.openid = value;
					this["DDD_openid"]= value;
            }
        }
    }
}